package org.service.es.service.impl;

import org.service.es.mapper1.EsSuperArticleBeanMapper;
import org.service.es.service.EsSuperArticleBeanService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * <p>Title:      EsSuperArticleBeanServiceImpl.java </p>
 * <p>Description TODO </p>
 * <p>Copyright: Copyright (c) 2021</p>
 * <p>Company:      军地联合</p>
 *
 * @author <a href="liuke.com"/>刘轲</a>
 * @version v1.0.3
 * @since 2024/2/22 13:56
 */

@Service
public class EsSuperArticleBeanServiceImpl implements EsSuperArticleBeanService {

    private final EsSuperArticleBeanMapper esSuperArticleBeanMapper;

    @Value("${easy-es.highlightSearch.enable:false}")
    private Boolean highlightSearch;
    @Value("${easy-es.highlightSearch.preTags:<span style='color:red'>}")
    private String preTags;
    @Value("${easy-es.highlightSearch.postTags:</span>}")
    private String postTags;
    @Value("${easy-es.highlightSearch.multiField:false}")
    private Boolean multiFieldHighlight;
    @Value("${easy-es.content.enable:false}")
    private Boolean contentEnable;
    @Value("${easy-es.subtitle.enable:false}")
    private Boolean subtitleEnable;

    @Value("${easy-es.sectorCount:8}")
    private Integer sectorCount;



    public EsSuperArticleBeanServiceImpl(EsSuperArticleBeanMapper esSuperArticleBeanMapper){
        this.esSuperArticleBeanMapper = esSuperArticleBeanMapper;
    }
}
